package org.one.stone.soup.grfxML.plugin;

import org.one.stone.soup.grfxML.DataActionColor;
import org.one.stone.soup.grfxML.DataActionMove;
import org.one.stone.soup.grfxML.DataActionPlugin;
import org.one.stone.soup.grfxML.DataActionRotate;
import org.one.stone.soup.grfxML.DataActionScale;
import org.one.stone.soup.grfxML.DataActionToggle;
import org.one.stone.soup.grfxML.DataAnchorBack;
import org.one.stone.soup.grfxML.DataAnchorReload;
import org.one.stone.soup.grfxML.DataAnchorToFile;
import org.one.stone.soup.grfxML.DataAnchors;
import org.one.stone.soup.grfxML.DataArc;
import org.one.stone.soup.grfxML.DataBase;
import org.one.stone.soup.grfxML.DataBehaviour;
import org.one.stone.soup.grfxML.DataChildren;
import org.one.stone.soup.grfxML.DataCircle;
import org.one.stone.soup.grfxML.DataColor;
import org.one.stone.soup.grfxML.DataFont;
import org.one.stone.soup.grfxML.DataImage;
import org.one.stone.soup.grfxML.DataKey;
import org.one.stone.soup.grfxML.DataLine;
import org.one.stone.soup.grfxML.DataMouse;
import org.one.stone.soup.grfxML.DataNode;
import org.one.stone.soup.grfxML.DataNull;
import org.one.stone.soup.grfxML.DataPoint;
import org.one.stone.soup.grfxML.DataPoints;
import org.one.stone.soup.grfxML.DataPolygon;
import org.one.stone.soup.grfxML.DataProcess;
import org.one.stone.soup.grfxML.DataRPolygon;
import org.one.stone.soup.grfxML.DataScale;
import org.one.stone.soup.grfxML.DataSettings;
import org.one.stone.soup.grfxML.DataShape;
import org.one.stone.soup.grfxML.DataSize;
import org.one.stone.soup.grfxML.DataState;
import org.one.stone.soup.grfxML.DataStates;
import org.one.stone.soup.grfxML.DataStore;
import org.one.stone.soup.grfxML.DataString;
import org.one.stone.soup.grfxML.DataText;
import org.one.stone.soup.grfxML.DataTextArea;
import org.one.stone.soup.grfxML.DataTitle;
import org.one.stone.soup.grfxML.DataTranslation;

public class grfxMLCaster {
public static DataActionColor cast(DataActionColor a,Object b) {
	if(b instanceof DataActionColor)
		return (DataActionColor)b;
	else
		return a;
}
public static DataActionMove cast(DataActionMove a,Object b) {
	if(b instanceof DataActionMove)
		return (DataActionMove)b;
	else
		return a;
}
public static DataActionPlugin cast(DataActionPlugin a,Object b) {
	if(b instanceof DataActionPlugin)
		return (DataActionPlugin)b;
	else
		return a;
}
public static DataActionRotate cast(DataActionRotate a,Object b) {
	if(b instanceof DataActionRotate)
		return (DataActionRotate)b;
	else
		return a;
}
public static DataActionScale cast(DataActionScale a,Object b) {
	if(b instanceof DataActionScale)
		return (DataActionScale)b;
	else
		return a;
}
public static DataActionToggle cast(DataActionToggle a,Object b) {
	if(b instanceof DataActionToggle)
		return (DataActionToggle)b;
	else
		return a;
}
public static DataAnchorBack cast(DataAnchorBack a,Object b) {
	if(b instanceof DataAnchorBack)
		return (DataAnchorBack)b;
	else
		return a;
}
public static DataAnchorReload cast(DataAnchorReload a,Object b) {
	if(b instanceof DataAnchorReload)
		return (DataAnchorReload)b;
	else
		return a;
}
public static DataAnchors cast(DataAnchors a,Object b) {
	if(b instanceof DataAnchors)
		return (DataAnchors)b;
	else
		return a;
}
public static DataAnchorToFile cast(DataAnchorToFile a,Object b) {
	if(b instanceof DataAnchorToFile)
		return (DataAnchorToFile)b;
	else
		return a;
}
public static DataArc cast(DataArc a,Object b) {
	if(b instanceof DataArc)
		return (DataArc)b;
	else
		return a;
}
public static DataBase cast(DataBase a,Object b) {
	if(b instanceof DataBase)
		return (DataBase)b;
	else
		return a;
}
public static DataBehaviour cast(DataBehaviour a,Object b) {
	if(b instanceof DataBehaviour)
		return (DataBehaviour)b;
	else
		return a;
}
public static DataChildren cast(DataChildren a,Object b) {
	if(b instanceof DataChildren)
		return (DataChildren)b;
	else
		return a;
}
public static DataCircle cast(DataCircle a,Object b) {
	if(b instanceof DataCircle)
		return (DataCircle)b;
	else
		return a;
}
public static DataColor cast(DataColor a,Object b) {
	if(b instanceof DataColor)
		return (DataColor)b;
	else
		return a;
}
public static DataFont cast(DataFont a,Object b) {
	if(b instanceof DataFont)
		return (DataFont)b;
	else
		return a;
}
public static DataImage cast(DataImage a,Object b) {
	if(b instanceof DataImage)
		return (DataImage)b;
	else
		return a;
}
public static DataKey cast(DataKey a,Object b) {
	if(b instanceof DataKey)
		return (DataKey)b;
	else
		return a;
}
public static DataLine cast(DataLine a,Object b) {
	if(b instanceof DataLine)
		return (DataLine)b;
	else
		return a;
}
public static DataMouse cast(DataMouse a,Object b) {
	if(b instanceof DataMouse)
		return (DataMouse)b;
	else
		return a;
}
public static DataNode cast(DataNode a,Object b) {
	if(b instanceof DataNode)
		return (DataNode)b;
	else
		return a;
}
public static DataNull cast(DataNull a,Object b) {
	if(b instanceof DataNull)
		return (DataNull)b;
	else
		return a;
}
public static DataPoint cast(DataPoint a,Object b) {
	if(b instanceof DataPoint)
		return (DataPoint)b;
	else
		return a;
}
public static DataPoints cast(DataPoints a,Object b) {
	if(b instanceof DataPoints)
		return (DataPoints)b;
	else
		return a;
}
public static DataPolygon cast(DataPolygon a,Object b) {
	if(b instanceof DataPolygon)
		return (DataPolygon)b;
	else
		return a;
}
public static DataProcess cast(DataProcess a,Object b) {
	if(b instanceof DataProcess)
		return (DataProcess)b;
	else
		return a;
}
public static DataRPolygon cast(DataRPolygon a,Object b) {
	if(b instanceof DataRPolygon)
		return (DataRPolygon)b;
	else
		return a;
}
public static DataScale cast(DataScale a,Object b) {
	if(b instanceof DataScale)
		return (DataScale)b;
	else
		return a;
}
public static DataSettings cast(DataSettings a,Object b) {
	if(b instanceof DataSettings)
		return (DataSettings)b;
	else
		return a;
}
public static DataShape cast(DataShape a,Object b) {
	if(b instanceof DataShape)
		return (DataShape)b;
	else
		return a;
}
public static DataSize cast(DataSize a,Object b) {
	if(b instanceof DataSize)
		return (DataSize)b;
	else
		return a;
}
public static DataState cast(DataState a,Object b) {
	if(b instanceof DataState)
		return (DataState)b;
	else
		return a;
}
public static DataStates cast(DataStates a,Object b) {
	if(b instanceof DataStates)
		return (DataStates)b;
	else
		return a;
}
public static DataStore cast(DataStore a,Object b) {
	if(b instanceof DataStore)
		return (DataStore)b;
	else
		return a;
}
public static DataString cast(DataString a,Object b) {
	if(b instanceof DataString)
		return (DataString)b;
	else
		return a;
}
public static DataText cast(DataText a,Object b) {
	if(b instanceof DataText)
		return (DataText)b;
	else
		return a;
}
public static DataTextArea cast(DataTextArea a,Object b) {
	if(b instanceof DataTextArea)
		return (DataTextArea)b;
	else
		return a;
}
public static DataTitle cast(DataTitle a,Object b) {
	if(b instanceof DataTitle)
		return (DataTitle)b;
	else
		return a;
}
public static DataTranslation cast(DataTranslation a,Object b) {
	if(b instanceof DataTranslation)
		return (DataTranslation)b;
	else
		return a;
}
public static DataActionColor replace(DataActionColor a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataActionColor)
			return (DataActionColor)c;
		else
			return null;
	}
	else
		return a;
}
public static DataActionMove replace(DataActionMove a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataActionMove)
			return (DataActionMove)c;
		else
			return null;
	}
	else
		return a;
}
public static DataActionPlugin replace(DataActionPlugin a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataActionPlugin)
			return (DataActionPlugin)c;
		else
			return null;
	}
	else
		return a;
}
public static DataActionRotate replace(DataActionRotate a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataActionRotate)
			return (DataActionRotate)c;
		else
			return null;
	}
	else
		return a;
}
public static DataActionScale replace(DataActionScale a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataActionScale)
			return (DataActionScale)c;
		else
			return null;
	}
	else
		return a;
}
public static DataActionToggle replace(DataActionToggle a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataActionToggle)
			return (DataActionToggle)c;
		else
			return null;
	}
	else
		return a;
}
public static DataAnchorBack replace(DataAnchorBack a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataAnchorBack)
			return (DataAnchorBack)c;
		else
			return null;
	}
	else
		return a;
}
public static DataAnchorReload replace(DataAnchorReload a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataAnchorReload)
			return (DataAnchorReload)c;
		else
			return null;
	}
	else
		return a;
}
public static DataAnchors replace(DataAnchors a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataAnchors)
			return (DataAnchors)c;
		else
			return null;
	}
	else
		return a;
}
public static DataAnchorToFile replace(DataAnchorToFile a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataAnchorToFile)
			return (DataAnchorToFile)c;
		else
			return null;
	}
	else
		return a;
}
public static DataArc replace(DataArc a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataArc)
			return (DataArc)c;
		else
			return null;
	}
	else
		return a;
}
public static DataBase replace(DataBase a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataBase)
			return (DataBase)c;
		else
			return null;
	}
	else
		return a;
}
public static DataBehaviour replace(DataBehaviour a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataBehaviour)
			return (DataBehaviour)c;
		else
			return null;
	}
	else
		return a;
}
public static DataChildren replace(DataChildren a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataChildren)
			return (DataChildren)c;
		else
			return null;
	}
	else
		return a;
}
public static DataCircle replace(DataCircle a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataCircle)
			return (DataCircle)c;
		else
			return null;
	}
	else
		return a;
}
public static DataColor replace(DataColor a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataColor)
			return (DataColor)c;
		else
			return null;
	}
	else
		return a;
}
public static DataFont replace(DataFont a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataFont)
			return (DataFont)c;
		else
			return null;
	}
	else
		return a;
}
public static DataImage replace(DataImage a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataImage)
			return (DataImage)c;
		else
			return null;
	}
	else
		return a;
}
public static DataKey replace(DataKey a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataKey)
			return (DataKey)c;
		else
			return null;
	}
	else
		return a;
}
public static DataLine replace(DataLine a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataLine)
			return (DataLine)c;
		else
			return null;
	}
	else
		return a;
}
public static DataMouse replace(DataMouse a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataMouse)
			return (DataMouse)c;
		else
			return null;
	}
	else
		return a;
}
public static DataNode replace(DataNode a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataNode)
			return (DataNode)c;
		else
			return null;
	}
	else
		return a;
}
public static DataNull replace(DataNull a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataNull)
			return (DataNull)c;
		else
			return null;
	}
	else
		return a;
}
public static DataPoint replace(DataPoint a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataPoint)
			return (DataPoint)c;
		else
			return null;
	}
	else
		return a;
}
public static DataPoints replace(DataPoints a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataPoints)
			return (DataPoints)c;
		else
			return null;
	}
	else
		return a;
}
public static DataPolygon replace(DataPolygon a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataPolygon)
			return (DataPolygon)c;
		else
			return null;
	}
	else
		return a;
}
public static DataProcess replace(DataProcess a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataProcess)
			return (DataProcess)c;
		else
			return null;
	}
	else
		return a;
}
public static DataRPolygon replace(DataRPolygon a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataRPolygon)
			return (DataRPolygon)c;
		else
			return null;
	}
	else
		return a;
}
public static DataScale replace(DataScale a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataScale)
			return (DataScale)c;
		else
			return null;
	}
	else
		return a;
}
public static DataSettings replace(DataSettings a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataSettings)
			return (DataSettings)c;
		else
			return null;
	}
	else
		return a;
}
public static DataShape replace(DataShape a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataShape)
			return (DataShape)c;
		else
			return null;
	}
	else
		return a;
}
public static DataSize replace(DataSize a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataSize)
			return (DataSize)c;
		else
			return null;
	}
	else
		return a;
}
public static DataState replace(DataState a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataState)
			return (DataState)c;
		else
			return null;
	}
	else
		return a;
}
public static DataStates replace(DataStates a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataStates)
			return (DataStates)c;
		else
			return null;
	}
	else
		return a;
}
public static DataStore replace(DataStore a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataStore)
			return (DataStore)c;
		else
			return null;
	}
	else
		return a;
}
public static DataString replace(DataString a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataString)
			return (DataString)c;
		else
			return null;
	}
	else
		return a;
}
public static DataText replace(DataText a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataText)
			return (DataText)c;
		else
			return null;
	}
	else
		return a;
}
public static DataTextArea replace(DataTextArea a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataTextArea)
			return (DataTextArea)c;
		else
			return null;
	}
	else
		return a;
}
public static DataTitle replace(DataTitle a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataTitle)
			return (DataTitle)c;
		else
			return null;
	}
	else
		return a;
}
public static DataTranslation replace(DataTranslation a,Object b, Object c) {
	if(a==b)
	{
		if(c instanceof DataTranslation)
			return (DataTranslation)c;
		else
			return null;
	}
	else
		return a;
}
}
